package com.freestyle.seatabusiness.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freestyle.seatabusiness.api.models.AccountTbl;

import java.util.List;

/**帐户管理
 * Created by rocklee on 2021/12/16 9:35
 */
public interface AccountService {
  /**
   * 余额扣款
   *
   * @param userId 用户ID
   * @param money  扣款金额
   */
  void debit(String userId, int money);

  /**
   * 新增帐户
   * @param userId
   * @param money
   */
  void addAccount(String userId,int money);

}
